import request from '@/utils/request'

// 查询车载设备管理列表
export function listOnboardDeviceManagement(query) {
  return request({
    url: '/ys/onboardDeviceManagement/list',
    method: 'get',
    params: query
  })
}

// 查询车载设备管理详细
export function getOnboardDeviceManagement(id) {
  return request({
    url: '/ys/onboardDeviceManagement/' + id,
    method: 'get'
  })
}

// 新增车载设备管理
export function addOnboardDeviceManagement(data) {
  return request({
    url: '/ys/onboardDeviceManagement',
    method: 'post',
    data: data
  })
}

// 修改车载设备管理
export function updateOnboardDeviceManagement(data) {
  return request({
    url: '/ys/onboardDeviceManagement',
    method: 'put',
    data: data
  })
}

// 删除车载设备管理
export function delOnboardDeviceManagement(id) {
  return request({
    url: '/ys/onboardDeviceManagement/' + id,
    method: 'delete'
  })
}
